home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
e
/
misc.txt
/
000053_fdc@panix.com_Sat Jan 13 14:25:36 2007.msg
< prev
next >
Wrap
Internet Message Format
|
2018-01-01
|
2KB
Path: reader2.panix.com!reader1.panix.com!panix!not-for-mail
From: Frank da Cruz <fdc@panix.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: HELP DATE - NOW not documented?
Date: Sat, 13 Jan 2007 19:25:31 +0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 49
Message-ID: <slrneqichb.bes.fdc@panix2.panix.com>
References: <if9n74-lil.ln1@CPE-124-177-240-121.sa.bigpond.net.au> <bubn74-7k.ln1@CPE-124-177-240-121.sa.bigpond.net.au>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: panix2.panix.com
X-Trace: reader2.panix.com 1168716331 1696 166.84.1.2 (13 Jan 2007 19:25:31 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Sat, 13 Jan 2007 19:25:31 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (NetBSD)
Xref: panix comp.protocols.kermit.misc:15625
On 2007-01-13, Arthur Marsh <arthur.marsh@internode.on.net> wrote:
: Arthur Marsh wrote, On 14/01/07 02:07:
:> Hi, I just needed to display the current UTC date and time at the
:> C-Kermit prompt (using the current nightly build on Debian unstable) and
:> looked at the options using HELP DATE.
:>
:> Although it wasn't (apparently) documented, I tried:
:>
:> DATE NOW UTC
:>
:> and obtained the desired result.
:>
:> Could the "NOW" keyword be documented in the "HELP DATE" text please?
:
OK, on my list.
: Correction, DATE NOW UTC gave me a didn't give me the correct time, it
: ADDED 10:30 to the local time instead of subtracting it (My current
: local timezone is UTC+10:30):
:
: date
: 20070114 02:22:51
: (/home/amarsh04/) C-Kermit>date now
: 20070114 02:22:53
: (/home/amarsh04/) C-Kermit>date now utc
: 20070114 12:52:57
: (/home/amarsh04/) C-Kermit>date now -10:30
: 20070113 15:53:08
: (/home/amarsh04/) C-Kermit>
:
DATE 20070114 02:22:53 UTC indicates a date/time at the Greenwich Meridian.
The keyword NOW is substituted by the current local date/time; so "DATE NOW
UTC" is kind of a mixed bag. It means, "if this is what the clock says in
Greenwich, then what time would it be here?", which is the opposite of what
you wanted; see:
http://www.columbia.edu/kermit/ckermit80.html#x8.13.3
The way to do what you want is:
echo \futcdate(now)
or simply:
echo \futcdate()
I admit, this could be documented better. On my list!
- Frank